package com.dys.multisheet;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;

import java.util.Date;

/**
 * @Author: 疾风
 * @ClassName: LoginUser
 * @Description: 登录用户实体
 * @CreateDate: 2024/12/10
 * @Version: v1.0.0
 */
@ExcelTarget(value = "loginUser")
public class LoginUser {
    @Excel(name = "用户ID",orderNum = "1")
    private String userId;
    @Excel(name = "密码",orderNum = "2")
    private String password;
    @Excel(name = "用户昵称",orderNum = "3")
    private String nickName;
    @Excel(name = "注册时间",format = "yyyy-MM-dd HH:mm:ss",orderNum = "4")
    private Date createTime;
    @Excel(name = "状态",orderNum = "6",replace = {"VIP_1","普通用户_0"})
    private String status;

    public LoginUser() {
    }

    public LoginUser(String userId, String password, String nickName, Date createTime, String status) {
        this.userId = userId;
        this.password = password;
        this.nickName = nickName;
        this.createTime = createTime;
        this.status = status;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "LoginUser{" +
                "userId='" + userId + '\'' +
                ", password='" + password + '\'' +
                ", nickName='" + nickName + '\'' +
                ", createTime=" + createTime +
                ", status='" + status + '\'' +
                '}';
    }
}
